/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
// -*- coding:iso-8859-15 mode: c++ -*-
/** 
 * \file
 * \brief Logger upper class implementation.
 * \author Matthieu Myrsky <matthieu.myrsky@tkk.fi>
 *
 * $Id: Logger.cpp,v 1.3 2009-05-19 08:57:09 morsko Exp $
 *
 */
#include "Logger.hpp"


Logger::Logger():
  iFilename(""),
  iFilenameSet(false),
  iName(),
  iService()
{

}

Logger::~Logger(){}

void Logger::SetService(const Gimbo::TServiceAssignment &aService)
{
 
  iService= aService;

}

void Logger::SetFilename(std::string aFilename){
  iFilename = aFilename;
  iFilenameSet = true;
  dPrint(3,"Set filename to '%s'",aFilename.c_str());
}

Gimbo::TServiceAssignment Logger::GetService(void)
{
 
  return iService;

}

void Logger::SetDefaultFilename(){
  dPrint(3,"Setting default name");
  iFilename = "";
  iFilenameSet = false;
}

bool Logger::SkipNMeasurements(unsigned int aN){
  return false;

}
